<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php 
echo $this->item->event->afterDisplayTitle; 
echo $this->item->event->beforeDisplayContent;

$menu_id = JRequest::getVar('Itemid', 0, 'get');
$cat_id = JRequest::getVar('category_id', 0, 'get');
//$cat_id = JRequest::getVar('id', 0, 'get');
$emulate = JRequest::getVar('emulate', 0, 'get'); 
?>


<div class="w317 mc">
    <div class="bg_img_p float_left">
        <?php 
            //$link = $this->item->readmore_link ? $this->item->readmore_link : JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catslug, $this->item->sectionid)); 
            $link = 'index.php?option=com_content&view=article&id=' . $this->item->id . '&category_id=' . $cat_id . '&Itemid=' . $menu_id . '&emulate=1';
        ?>
        <!--
        <a href="<?php echo $link; ?>" target="_blank">
            <img src="<?php echo ($this->item->article_image ? $this->item->article_image : JURI::base() . 'images/resevedede_no_img.jpg'); ?>" alt="<?php echo $this->item->title; ?>" width="126" height="79" />            
        </a>
        -->        
        <img src="<?php echo ($this->item->article_image ? $this->item->article_image : JURI::base() . 'images/resevedede_no_img.jpg'); ?>" alt="<?php echo $this->item->title; ?>" width="126" height="79" />            
    </div>
    <div class="float_right w160">
        <p class="p10t">                                     
            <b>
                <?php                 
                $str = $this->escape($this->item->title); 
                echo (strlen($str) > 18 ? substr($str, 0, 18) . ' ...' : $str);
                ?>
            </b>
        </p>
        <p>
            <?php 
                $str = JFilterOutput::ampReplace($this->item->text);                
                echo (strlen($str) > 100 ? substr(strip_tags($str), 0, 100) : strip_tags($str)); 
            ?>
            <!--...<a href="<?php echo $link; ?>"><?php echo JText::_('READ_MORE'); ?></a> -->
        </p>
    </div>
    <div class="cb"></div>
</div>

<?php echo $this->item->event->afterDisplayContent; ?>